// EraseLineSequence.cpp: implementation of the CEraseLineSequence class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "AnsiTerminal.h"
#include "EraseLineSequence.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////


void CEraseLineSequence::SetParameters(const CString& params)
{
	int n = atoi(params);
	switch(n)
	{
	case 0:
		m_pScreenAction->Erase(EraseToEOL);
		break;
	case 1:
		m_pScreenAction->Erase(EraseToBOL);
		break;
	case 2:
		m_pScreenAction->Erase(EraseLine);
		break;
	default:
		; // ignore
	}
}